package umt.cs.cs241.assignment2.r_2_6;

public class FibonacciProgression extends Progression {
	
	long prev;
	
	public FibonacciProgression(){
		this(0,1);
	}
	
	public FibonacciProgression(long value1, long value2){
		first = value1;
		prev = value2 - value1;
	}
	
	protected long nextValue(){
		long temp = cur;
		prev = cur;
		cur += temp;
		return cur;
	}

}
